home *** CD-ROM | disk | FTP | other *** search
/ Postcardigtal: Baalbeck / postcardigtal: Baalbeck.iso / mac / afestival.swf / scripts / frame_1 / PlaceObject2_74_30 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2003-06-30  |  629b  |  30 lines

  1. onClipEvent(enterFrame){
  2.    if(automove)
  3.    {
  4.       if(i > 24)
  5.       {
  6.          _parent.pictures.gotoAndStop(random(7) + 1);
  7.          i = 0;
  8.       }
  9.       else
  10.       {
  11.          i++;
  12.       }
  13.       if(_parent.bande.buttons._y < 120)
  14.       {
  15.          toggle = 4;
  16.       }
  17.       else if(_parent.bande.buttons._y > 690)
  18.       {
  19.          toggle = -4;
  20.       }
  21.       _parent.bande.buttons._y += toggle;
  22.       _parent.bande.band._y += toggle;
  23.    }
  24.    else
  25.    {
  26.       _parent.bande.buttons._y = (_parent.bande.buttons._y + finaly) / 2;
  27.       _parent.bande.band._y = (_parent.bande.band._y + finaly) / 2;
  28.    }
  29. }
  30.